home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / gfx / pbm / STIMP_geom.lha / STIMP_geom / Install < prev    next >
Text File  |  1998-11-29  |  5KB  |  197 lines

  1. ;
  2. ; Skript zur Installation von STIMP_geom 1.01
  3. ; inklusive Unterstuetzung fuer Ultraconv3/4
  4. ; Version 1.01, 29.11.98
  5. ; Version 1.00, 28.04.98
  6. ; (c) 1998 Stefan Diener
  7. ;
  8.  
  9. (set @pretend 0)
  10. (set @user-level 2)
  11. (set @default-dest "")
  12.  
  13. (complete 0)
  14.  
  15. (if (= @language "deutsch")
  16.  (
  17.    ; deutsche Textausgaben
  18.    (set #yes "Ja")
  19.    (set #no "Nein")
  20.    (set #gruss "\n\n\n\nSTIMP_geom 1.01\n© 1998 by Stefan Diener\n\n\nWillkommen zur Installation von STIMP_geom 1.01 !\nDieses Skript wird STIMP_geom auf Ihre Festplatte installieren.\n")
  21.    (set #destimsg "Wo wollen Sie STIMP_geom_Preview installieren ?\n(Ein Verzeichnis namens STIMP wird dort automatisch erzeugt.)")
  22.    (set #addlines "\nZwei Zeilen müssen zur Datei S:User-Startup hinzugefügt werden:\n")
  23.    (set #fertig "\n\nSTIMP_geom_Preview ist nun auf Ihrer Festplatte in folgendem\nVerzeichnis installiert:\n")
  24.    (set #whichcpu "\n\n\nDiese Shareware-Version enthält nur\nunoptimierte 68000er Versionen.\n\nOptimierte Versionen sind für registrierte Benutzer verfügbar.")
  25.    (set #reallyuconv "\nMöchten Sie die Programme auch von\nUltraconv3/4 aus benutzen ?")
  26.  )
  27.  (
  28.    ; english text output
  29.    (set #yes "Yes")
  30.    (set #no "No")
  31.    (set #gruss "\n\n\n\nSTIMP_geom 1.01\n© 1998 by Stefan Diener\n\n\nWelcome to the STIMP_geom 1.01 installation !\nThis script will install STIMP_geom on your harddisk.\n")
  32.    (set #destimsg "Where do you want to install STIMP_geom_Preview ?\n(A directory called STIMP will be automaticly created.)")
  33.    (set #addlines "\nTwo lines have to be added to your S:User-Startup:\n")
  34.    (set #fertig "\n\nSTIMP_geom_Preview is now installed on your harddisk at:\n")
  35.    (set #whichcpu "\n\n\nThis shareware version contains an unoptimized\nexecuteable for 68000 only.\n\nOptimized versions are available for registered users.")
  36.    (set #reallyuconv "\nDo you want to use the programs\ntogether with Ultraconv3/4 too ?")
  37.  )
  38. )
  39.  
  40. ; kleine Begruessung
  41. (message #gruss
  42. )
  43.  
  44. ; Zielpfad ermitteln
  45. (set #destidir
  46.   (askdir
  47.     (prompt #destimsg)
  48.     (help @askdir-help)
  49.     (default "GFX:")
  50.   )
  51. )
  52.  
  53. (complete 5)
  54.  
  55. (set #dstdir
  56.   (tackon #destidir "STIMP")
  57. )
  58.  
  59. ; ggf. Verzeichnis fuer STIMP erst erzeugen
  60. (if (= (exists #dstdir) 0)
  61.  (makedir #dstdir)
  62. )
  63.  
  64. (complete 10)
  65.  
  66. ; alle Pfade definieren
  67. (set #binpath
  68.   (tackon #dstdir "bin")
  69. )
  70.  
  71. (set #docpath
  72.   (tackon #dstdir "doc")
  73. )
  74.  
  75. (set #helppath
  76.   (tackon #dstdir "help")
  77. )
  78.  
  79. ; leider nur 68000er Variante verfuegbar
  80. (message #whichcpu
  81. )
  82.  
  83. (complete 20)
  84.  
  85. ; Dokumentation kopieren
  86. (copyfiles
  87.   (source "doc")
  88.   (dest #docpath)
  89.   (pattern "#?")
  90. )
  91.  
  92. (complete 30)
  93.  
  94. ; Help-Dateien kopieren
  95. (copyfiles
  96.   (source "help")
  97.   (dest #helppath)
  98.   (pattern "#?")
  99. )
  100.  
  101. (complete 40)
  102.  
  103. ; Programme kopieren
  104. ; nur 68000
  105. (copyfiles
  106.   (source "bin")
  107.   (dest #binpath)
  108.   (pattern "#?")
  109. )
  110.  
  111. (complete 60)
  112.  
  113. (set #linetoadd1
  114.   (cat "Assign STIMP: " #dstdir)
  115. )
  116.  
  117. (set #linetoadd2 "Assign C: STIMP:bin add")
  118.  
  119. ; Assign-Zeilen in S:User-Startup einfuegen
  120. (startup "STIMP"
  121.   (prompt #addlines
  122.           #linetoadd1 "\n"
  123.           #linetoadd2)
  124.   (help "These lines have to be added in order to make the STIMP programs run properly !")
  125.   (command #linetoadd1 "\n" #linetoadd2)
  126. )
  127.  
  128. ; auch jetzt schon Assign wirksam werden lassen
  129. (makeassign "STIMP" #dstdir)
  130.  
  131. ; Hier muesste stehen: "Assign C: STIMP:bin add".
  132. ; Stattdessen wird ein kleines Shell-Skript
  133. ; aufgerufen -> umstaendlich, aber noetig ...
  134. (execute "Assign.Skript")
  135.  
  136. (complete 70)
  137.  
  138.  
  139. ; Ultraconv-Unterstuetzung erwuenscht ?
  140. (set #uconv (askchoice (choices #yes #no)
  141.               (prompt #reallyuconv)
  142.               (help "I suggest to select YES !")
  143.               (default 0)
  144.             )
  145. )
  146.  
  147. (complete 75)
  148.  
  149. (if (= #uconv 0)
  150.   (
  151.     ; Ultraconv-Unterstuetzung ist erwuenscht !
  152.  
  153.     ; copy ReqDesc files
  154.     (copyfiles
  155.       (source "Ultraconv/ReqDesc/")
  156.       (dest "UConv:ReqDesc/")
  157.       (pattern "#?")
  158.     )
  159.  
  160.     (complete 80)
  161.  
  162.     ; add the new filters
  163.     ; this is a little bit more complicated,
  164.     ; so I give it up to a shell script
  165.     (execute "Ultraconv/AddNewFilters.Skript")
  166.  
  167.     (complete 90)
  168.  
  169.     ; copy german catalog file
  170.     (if (= @language "deutsch")
  171.       (
  172.         (if (> (exists ("UConv:Catalogs/Deutsch/UConv.catalog")) 0)
  173.           (copyfiles
  174.             (source "Ultraconv/Catalogs/Deutsch/")
  175.             (dest "UConv:Catalogs/Deutsch/")
  176.             (pattern "#?")
  177.           )
  178.         )
  179.  
  180.         (complete 95)    
  181.  
  182.         (copyfiles
  183.           (source "Ultraconv/Catalogs/Deutsch/")
  184.           (dest "LOCALE:Catalogs/Deutsch/")
  185.           (pattern "#?")
  186.         )
  187.       )
  188.     )
  189.   )
  190. )
  191.  
  192. (complete 100)
  193.  
  194. ; das war es schon -> Verabschiedung
  195. (message #fertig #dstdir "\n\n\nHave fun !"
  196. )
  197.